﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Smart.Service
{
    /// <summary>
    /// 服务请求对象
    /// </summary>
    public interface IServiceRequest
    {
        /// <summary>
        /// 服务请求命名参数
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        string this[string key] { get; set; }
        /// <summary>
        /// 是否包含命名参数
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        bool Contains(string key);
        /// <summary>
        /// 转换到xml请求字符串，用于服务参数传递
        /// </summary>
        /// <returns></returns>
        string ToXmlString();
    }
}
